package services

import (
	"fmt"
	"strconv"
	"sync"
)

var index = 0
var num = 3
var s sync.Mutex

func Rotation() {
	s.Lock()
	fmt.Print("\nRotation index=" + strconv.Itoa(index) + "\n")
	if index >= num {
		index = 0
	} else {
		index++
	}
	s.Unlock()
}
